package com.atcjx.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName keyWord.java
 * @Description TODO 文章关键字的pojo对象
 * @createTime 2021年12月07日 19:40:00
 */
@ApiModel("文章关键字对象")
@AllArgsConstructor
@Getter
public class keyWord {
    @ApiModelProperty("关键字字面值")
    private  String word;
    @ApiModelProperty("关键字权值")
    private int priority;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        keyWord keyWord = (keyWord) o;
        return word.equals(keyWord.word);
    }

    @Override
    public int hashCode() {
        return Objects.hash(word);
    }
}
